package com.spring5.learning.strategy;

import java.math.BigDecimal;

import org.springframework.stereotype.Component;

/**
 * @author xin
 * @version 1.0
 */
@Component
public class SuperMemberStrategy implements CalculatePriceStrategy {
    @Override
    public MemberType getMemberType() {
        return MemberType.SUPER;
    }

    @Override
    public BigDecimal calculate() {
        return new BigDecimal("10");
    }
}
